﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:BarCharts="clr-namespace:WpfGraphing.BarCharts;assembly=WpfGraphing" xmlns:local="clr-namespace:WpfGraphingTest" x:Class="WpfGraphingTest.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="1*"/>
        </Grid.RowDefinitions>


        <Grid.DataContext>
            <local:BarChartViewModel/>
        </Grid.DataContext>


        <ToolBar>
            <Button Content="bar1"/>
            <Button Content="bar2"/>
            <Button Content="bar3"/>
            <Button Content="bar4"/>
        </ToolBar>

        <BarCharts:BarChartControl Grid.Row="1" Title="{Binding Path=ChartDetails.Title}" XAxisTitle="{Binding Path=ChartDetails.XAxisTitle}" ValueLabelsMinFontSize="{Binding Path=ChartDetails.BarSeries.LabelMinimumFontSize}" YAxisTitle="{Binding Path=ChartDetails.YAxisTitle}"
                                   ShowValueLabels="{Binding Path=ChartDetails.BarSeries.LabelValuesVisibility}"  ChartStyle="{Binding Path=ChartDetails.ChartStyle}"  DataCollection="{Binding ChartDetails.BarSeries, Mode=TwoWay}"/>

    </Grid>
</Window>
